package com.abapi.pay.service;

import com.abapi.pay.core.annotation.EndpointMapping;
import com.abapi.pay.core.constans.MessageType;
import com.abapi.pay.core.dto.MessageDTO;
import io.netty.channel.ChannelHandlerContext;

/**
 * @Author ldx
 * @Date 2020/1/31 13:17
 * @Description
 * @Version 1.0.0
 */
@EndpointMapping(value = MessageType.PONG,desc = "服务机返回心跳")
public class PongService implements AbstractEndpointService{

    @Override
    public void handler(ChannelHandlerContext context, MessageDTO dto) {
        System.out.println("---------------------PONG---------");
    }
}
